package com.hnust.fiveonesix.Mapper.LogiorRegiMapper;

import com.hnust.fiveonesix.POJO.RegisterInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

@Component
public interface RegisterMapper {
    @Select("select * from UserRegister where UserName like #{UserName}")
    RegisterInfo selectUserInfo(String UserName);
    @Insert("Insert into UserRegister values(#{userName},#{pwd},#{name},#{tel},#{place},#{QQ},#{mail})")
    void insertUserinfo(String userName,String pwd,String name,String tel,String place,Integer QQ,String mail);
    @Update("update UserRegister set UserPwd = #{userPwd} where UserName = #{username}")
    void Charpwd(String username,String userPwd);
}
